<template>
  <div id="hd">
    <div class="box">
      <van-icon name="arrow-left" size="28"/>
      <van-icon name="search" class="search" size="20"/>
      <input type="text" placeholder='输入你想搜索的'>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      
    }
  }
}
</script>

<style lang='scss'>
#hd{
  padding: 10px;
  border-bottom: 2px solid rgba(0,0,0,.1);
}
.box{
  display: flex;
  align-items: center;
  position: relative;
  input{
    margin-left: 10px;
    border: none;
    background: #f5f5f7;
    padding: 10px;
    font-size: 14px;
    width: 87%;
    text-align: center;
  }
  .search{
    position: absolute;
    top: 9px;
    left: 43px;
  } 
}
</style>
